<?php


/**
示例控制器
 */
namespace app\admin\ctrl;

use core\model\adminModel;

class loginCtrl extends  \app\admin\ctrl\baseCtrl
{
	public function index()
	{
		$this->display('login/login.html');
	}
	
	public function login()
	{
		$adminModel = new adminModel();
		$ret = $adminModel->login();
		json($ret);
	}
	
	public function logout()
	{
		$adminModel = new adminModel();
		$adminModel->loginout();
		$this->display('login/login.html');
	}
}
